package com.rr.mymoney.bo;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.rr.mymoney.model.User;

@Transactional
public interface UserBo {
    @Transactional
    public void saveOrUpdate(User user) throws Exception;

    @Transactional(readOnly = true)
    public User get(Long id);

    @Transactional(readOnly = true)
    public User get(String username);

    @Transactional
    public void delete(User user);

    @Transactional(readOnly = true)
    public List<User> getAll();
}
